Study of charged hadronic four-body decays of the D0 meson