Getting lost in a book is now regarded as an enriching experience – but a few hundred years ago, reading novels was considered a corrupting force.