Divide and Conquer: Towards Better Embedding-based Retrieval for Recommender Systems from a Multi-task Perspective