gold reaches near three-month highs, amid weakening dollar