K-adaptability in stochastic optimization