Iran says it will allow ships through the Strait of Hormuz for two weeks in coordination with its armed forces.