gold futures end lower after hitting record high