G20 agrees to avoid currency war, also agrees to reduce trade imbalances