Balancing Agent Retention and Waiting Time in Service Platforms