Effectiveness of cognitive-behavioural group therapy for inpatients