W(E10) symmetry, M-theory and Painlevé equations