Gold settles slightly higher after touching multimonth lows