Stochastic theory of hematopoiesis