A Survey on LLM-powered Agents for Recommender Systems