Oil dives 4% as US data shows weak demand for gasoline