Aggregate fluctuations in a trade and credit network economy