Development and validation of a prognostic model based on comorbidities to predict COVID-19 severity: a population-based study