Self-Consistent Diagrammatic Theory of Anderson Localization