President Vladimir Putin is to visit Iran in August to try and restart talks on Tehran's controversial nuclear programme.