Electronics giant Hitachi plans to move its global rail business from Japan to the UK.