Maximal cuts and differential equations for Feynman integrals. An application to the three-loop massive banana graph