gold settles higher after string of weekly declines