A stochastic index-flow model of flow duration curves