Gold near 5-month highs in risk-off trade