Departure follows criticism from MPs over her leadership of struggling health service