Gold rises above $4,080 as U.S.-Iran deal hopes weaken dollar