Gold settles with a loss after failed rebound attempt