How delayed and non-adherent treatment contribute to onward transmission of malaria: a modelling study