Measures to prevent nosocomial transmissions of COVID-19 based on interpersonal contact data