Depression, Cognitive Functions, and Impaired Functioning in Middle-Aged Adults From the CONSTANCES Cohort.