People around the world did not report being more unhappy during the COVID pandemic than in the years before it, according to a study.