Older people are "happier, more satisfied, and have a greater sense of purpose" than before the COVID-19 pandemic, a study has found.