The network origins of aggregate fluctuations