Dynamics of Information Exchange in Endogenous Social Networks