The Association of Depression, Cognitive Impairment without Dementia, and Dementia with Risk of Ischemic Stroke: A Cohort Study