Machine learning predicts hospital-onset COVID-19 infections using patient contact networks