Iran’s president says state must admit mistakes after protests