Iran and the world powers reached a final nuclear agreement after two years of relentless efforts which put an end to more than a decade of disputes, IRNA reports.