Detroit’s mayor resigns