The role of cognitive dissonance in the pandemic