Gold ends four-day losing streak as Fed rate hike, China remain in focus