New York City’s police commissioner resigns as investigations swirl around mayor’s inner circle