Close encounters during a pandemic: Social habits and inter-generational links in the first two waves of COVID-19