Leading determinants of incident dementia among individuals with and without the apolipoprotein E ε4 genotype: a retrospective cohort study