Mayor of Baltimore resigns amid book scandal