UN envoy in Iraq to step down at end of May, says country ‘on a knife edge’