Real price and wage rigidities with matching frictions