Italian justice undersecretary Andrea Delmastro has resigned after it emerged he had held a stake in a restaurant linked to the mafia.