Variables associated with the hospitalization of psychiatric emergencies evaluated in the community