Oophorectomy and rate of dementia: a prospective cohort study