Gold trims gains after upbeat U.S. housing, consumer data