Pernod Ricard agrees to buy online spirits retailer The Whis