Modelling the impact of social mixing and behaviour on infectious disease transmission: application to SARS-CoV-2 (preprint)