WH Smith has sold its nearly 500 High Street stores to Modella Capital and will now focus solely on its travel retail arm.