How and when should companies retain their human capital? Contracts, incentives and human resource implications