Gold futures log back-to-back weekly losses