The European Union and Japan have formally agreed an outline free-trade deal. The agreement paves the way for trading in goods without tariff barriers between two of the world's biggest economic areas.