Relationship between depression, anxiety, stress, and SARS-CoV-2 infection: a longitudinal study