On the minimal flat resolutions of modules