RAEE: A Training-Free Retrieval-Augmented Early Exiting Framework for Efficient Inference