The total cost of repairing vehicles damaged by potholes hit a record high last year, new figures show.