Luigi Di Maio stepped down on Wednesday as leader of Italy’s co-governing 5-Star movement, as it seeks to stem a wave of defections that threatens the government’s parliamentary majority.