Nicole weakens to tropical storm over Florida