Relationship between hospitalization and functional and cognitive impairment in hospitalized older adults patients