Psychiatric outcomes and overall functioning in healthcare students during the first wave of the COVID-19 pandemic: a cross-sectional study