RAR: Retrieving And Ranking Augmented MLLMs for Visual Recognition