gold gains on falling stock prices, soft u.s. data