WH Smith has sold its 233-year old high street business to the owner of Hobbycraft in a £76m deal.