General Motors is being accused of collecting data about the "bad" habits of drivers and selling it on to insurers.