Peer Effects in Social Networks: Search, Matching Markets, and Epidemics