A spatio-temporal model based on discrete latent variables for the analysis of COVID-19 incidence