Factors associated with mask wearing among psychiatric inpatients during the COVID-19 pandemic