Publishers scared of cancel culture made me rewrite my book, says Anthony Horowitz