gold trims gains after upbeat u.s. housing, consumer data