Mental health of healthcare workers in England during the COVID-19 pandemic: a longitudinal cohort study