Growing old isn’t always easy. But new research suggests staying curious and social may help you age well.