Contagion and learning in business networks