J.K. Rowling's Harry Potter and the Deathly Hallows has beaten sales of her previous book, Harry Potter and the Half-Blood Prince, with more consumers now going online to buy.