Almost £13m has been spent on Devon's potholes, road repairs and maintenance in the last three years, new analysis shows.