Temporal User Profiling with LLMs: Balancing Short-Term and Long-Term Preferences for Recommendations