Iranian president Hassan Rouhani has called for the Middle East and the Korean Peninsula to be free of nuclear weapons.