Endogenous sex hormones as risk factors for dementia in elderly men and women.