gold futures end lower on day, but gain almost 4% on week