Factors associated with mental health in Peruvian medical students during the COVID-19 pandemic: a multicentre quantitative study