Social contacts, epidemic spreading and health system. Mathematical modeling and applications to COVID-19 infection