G20 agree farm deal, soft on regulation