researchers say varicose veins are largely hereditary but other factors can exacerbate them , such as obesity or standing for long periods of time , increased estrogen levels brought on by pregnancy , menstruation or taking birth control pills .