Effects of collective emission on multiphoton excitation and ionization near a three-photon resonance