Contractivity and ergodicity of the random map $x\mapsto|x-\theta|$