PreMoe: Lightening MoEs on Constrained Memory by Expert Pruning and Retrieval