Iran's president said that he refused to enforce a controversial dress code law as it might have started a "war" in Iranian society.