Metabolic diversification as a buffer against environmental instability in budding yeast