New study sheds light on how people gained weight during Covid-19 pandemic