Modelling the Spread of COVID-19 and the Effect of Preventive Measures : A Bayesian Hierarchical Latent Factor Approach