Samuel Pepys’s journals are an invaluable record of British history. A new book reconsiders his infamous sexual exploits.