Association between a history of clinical depression and dementia, and the role of sociodemographic factors: population-based cohort study. (July 2022)