Japan’s exports rose by the most since February as demand jumped in the US and EU, offsetting a drop in shipments to China.