Impact of government policies on the COVID-19 pandemic unraveled by mathematical modelling