Thousands of Thais seek shelter as first tropical storm in decades nears coast