Gold edges up on bargain-hunting; dollar pares gains