Oil has retreated to below $100 a barrel while stocks rise as Iran suggested it was open to striking a deal with the US, despite the collapse in talks over the weekend.