Brazil have appointed their former coach and World Cup-winning captain Dunga as a successor to Luiz Felipe Scolari.