Adverse clinical events and mortality during hospitalization and 3 months after discharge in cognitively impaired elderly patients