On-the-Job Training in a Frictional Labor Market: Investment or Compensation?