Modelling the relationship between malaria prevalence as a measure of transmission and mortality across age groups