Cognitive function in a middle aged cohort is related to higher quality dietary pattern 5 and 25 years earlier: the CARDIA study.