JCPOA would have failed or taken 20 years with indirect talks – Former Iranian president