Risk of COVID-19 among front-line health-care workers and the general community: a prospective cohort study