Italy beat Hungary for consolation of Nations League final-four