Theory of fluctuations in disordered systems