A diagrammatic two-particle locator theory for disordered systems. I. General formulation