How Beliefs Affect the Spread of COVID-19