The EU plans to force railway companies operating across the bloc to sell rivals’ tickets on their websites and share data with booking platforms, under new rules that are intended to boost train travel.