Tory leadership hopeful Michael Gove said he was lucky to have avoided going to prison for cocaine use after he admitted taking the drug on several occasions around 20 years ago when he was a journalist.