cognitive function during menopause