Intake of vegetables and fruits through young adulthood is associated with better cognitive function in midlife in the US general population