Taming the One-Epoch Phenomenon in Online Recommendation System by Two-stage Contrastive ID Pre-training