Gold rebounds from 3-month lows to finish higher