Transmission of community- and hospital-acquired SARS-CoV-2 in hospital settings in the UK: A cohort study