gold futures end week with minor loss