Toyota has apologised for providing incorrect or manipulated data for safety certification tests.