CPR: Retrieval Augmented Generation for Copyright Protection