Train passengers will be given more freedom to switch services when their original train is cancelled.