Firm dollar caps gold rise, investors eye G20 summit