Iran and the United States hardened their positions as diplomacy aimed at reaching a ceasefire in the war appeared to be faltering