Defeated Reform parliamentary candidate Matt Goodwin has been accused of using ChatGPT to research his latest book.