A new state-owned company will run Britain's railways under plans being presented in Parliament, meaning train passengers will be able to buy all their tickets through a "one-stop-shop" app.