Gold gains on soft U.S. home sales report