Pregnancy complications and early menopause increase women's future risk of heart disease, suggests a new study.