Hachette Book Group said it will not be publishing “Shy Girl” over concerns that artificial intelligence was used to generate the text.