gold advances as dollar edges lower on weak us data