Influence of prior comorbidities and chronic medications use on the risk of COVID-19 in adults: a population-based cohort study in Tarragona, Spain