gold rebounds friday but posts third weekly loss