Mild Cognitive Impairment and Dementia Show Contrasting Associations with Risk of Cancer