Iran’s president says his country is ready to return to the ceasefire deal agreed to with the United States in June so long as Washington follows suit