Thousands of drivers each year are paying traffic fines which should not have been issued, according to new analysis.