Association Between Acute Care and Critical Illness Hospitalization and Cognitive Function in Older Adults