Customers of BSM Driving School and The AA Driving School are to get refunds after an investigation by the competition regulator.