Technology shocks, capital reallocation frictions and the cross-section of stock returns