The US president said the Iranians should agree to a deal "or there won't be anything left of them" amid stalled peace talks.