Association of apolipoprotein E variation with cognitive impairment across multiple neurodegenerative diagnoses