Duration of hospitalization in an acute psychiatric unit