Metabolic Flexibility as a Major Predictor of Spatial Distribution in Microbial Communities