G20 agrees to slash deficits