Hundreds of thousands of demonstrators have clashed with security forces as the tense situation in Iran escalated further out of control during nationwide protests.