A Cluster-Weighted Approach to Local Statistical Modeling