Gold tallies three-session rise, but ends week flat