Rescattering and multiple scattering effects in events with rapidity gaps