Endogenous real wage rigidity in a search frictions model. (9th June 2018)