Hopf algebras and Markov chains