CLUES: Collaborative High-Quality Data Selection for LLMs via Training Dynamics