Contracting COVID-19: a longitudinal investigation of the impact of beliefs and knowledge