Gold futures at two-week high as the dollar weakens