Retrieval-Enhanced Machine Learning: Synthesis and Opportunities