The US and Iran have 'reached a deal' to extend the ceasefire and open new negotiations on Tehran's nuclear programme.