Higher-order M-theory corrections and the Kac–Moody algebra E10