Gold rises to 6-month-high driven by weaker dollar