Italian Prime Minister Mario Draghi handed in his resignation after three major coalitions boycotted a vote of confidence and set the stage for early elections.