LAMS: LLM-Driven Automatic Mode Switching for Assistive Teleoperation