Hormone therapy and the decreased risk of dementia in women with depression: a population-based cohort study