Psychosocial difficulties and treatment retention in inpatient detoxification programmes