Perioperative Temporal Profile of Cognitive Function in Elderly Patients Undergoing Hip Surgery