The U.S. and Iran held indirect technical talks in Doha on Wednesday as they seek to agree on the flow of shipping through the Strait of Hormuz and secure a lasting ceasefire, a source with direct knowledge of the talks and an Iranian official said.