Time trends in social contacts of individuals according to comorbidity and vaccination status, before and during the COVID-19 pandemic