Bi-directional Training for Composed Image Retrieval via Text Prompt Learning