Heart disease, stroke and vascular disease could put women at greater risk than men of developing cognitive difficulties as they age, a new study found.