Gold ends higher as economic data raise uncertainty for interest-rate hike