Theory of non-linear susceptibility and correlation length in glasses and liquids