Hugh Bonneville has been forced to apologise after making flippant remarks about being 'contractually obligated' to write a children's book.