Mental health during the COVID-19 pandemic in two longitudinal UK population cohorts