Prevalence of depression, anxiety, and associated factors in residents from hospital centers during COVID-19 pandemic