Gold halts 5-session skid to end firmly higher