The UN's envoy to Iraq has warned that "systemic violence is ready to explode at any moment" as a fresh wave of attacks killed at least 24 people in the country.