Learning in networks with communication delays