Gold futures settle lower, log weekly loss