The G20 summit has closed with a defeat for those seeking tougher regulation of the markets - but a commitment to boost aid to troubled economies.