US firms Latham & Watkins and Cleary Gottlieb Steen & Hamilton are advising as German industrial group Siemens and French rival Alstom agree to merge their rail operations.