How menopause affects the brain