WH Smith, a stalwart of British retailing for more than 200 years, is in talks to sell its high street business.