Diffraction dissociation in the reaction pp → pλK+ at 12 and 24 GeV/c