Historic retailer WH Smith has quit the UK high street after 233 years.