Late-life depression and increased risk of dementia: a longitudinal cohort study