Incentives to Invest in Short-Term vs Long-Term Contracts: Theory and Evidence