Best-selling children’s author and one half of comedy writer-actor duo behind Little Britain, David Walliams speaks about the anxieties and joys of writing, staying funny and trying not to offend. Edited excerpts