Epidemic model on a network: Analysis and applications to COVID-19