Retrieval Augmented Diffusion Model for Structure-informed Antibody Design and Optimization