Cognitive reserve moderates the association between heart failure and cognitive impairment