Memory-enhanced Invariant Prompt Learning for Urban Flow Prediction under Distribution Shifts