A General Theory of Heterophase Fluctuations and Pretransition Phenomena