Cognitive-behavioural intervention for self-harm: randomised controlled trial