The firm will be unable to accept foreign trainees for the next five years.