Taiwan's cabinet resigns