Hemorrhoids during and after pregnancy

What are the causes of hemorrhoids during childbirth and pregnancy?

How can hemorrhoids be treated and what helps against pain?