Risk of dementia after stroke in a hospitalized cohort