On the origin of soft X-rays in obscured AGN: answers from high-resolution spectroscopy with XMM–Newton