Brazil top Confederations Cup group after 4-2 win over Italy