DRUM: Learning Demonstration Retriever for Large MUlti-modal Models