REAL-Prover: Retrieval Augmented Lean Prover for Mathematical Reasoning