The management of a sexually charged clinical problem: social structural and psychoanalytic functionalist approaches in a therapeutic community