gold posts weekly loss on dollar rise, strong us data