Tax policy in a matching model with training