The former Celebrity Big Brother contestant told a court he took cannabis to deal with depression and anxiety caused by traumas in his life.