Iran agrees ‘in principle’ to compromise on nuclear programme