Dietary patterns in early life pay dividends for midlife cognitive performance