Solvent-Induced Association of Polymers: Clustering and Network Formation