Gold gains 0.4% as Iran deal hopes ease rate-hike bets