Prospective study of profile and outcome of inpatient referals to psychiatry in a teaching general hospital