Gold futures close down 0.5%, but gain 1.5% for week and finish 2016 up 9%