Cognitive enhancers associated with decreased risk of injury in patients with dementia: a nationwide cohort study in Taiwan