N.Ireland braces for uncertainty as leader resigns