Mathematical modelling of bacterial and viral infections