gold futures end higher for the day and the week