RAM-EHR: Retrieval Augmentation Meets Clinical Predictions on Electronic Health Records