Peer effects and local congestion in networks