Theory of oriented flocculation