Study of cross sections and spin-density matrix elements in 5 GeV/c π+p four-pronged interactions