Tropical Storm Grace forms as Fred weakens to tropical wave