Anti-government protesters demonstrated in Iran on Sunday in defiance of a warning by President Hassan Rouhani of a tough crackdown.