Spatial interplay of plant competition and consumer foraging mediate plant coexistence and drive the invasion ratchet