Early dynamics of transmission and control of COVID-19: a mathematical modelling study