An XMM–Newton study of active–inactive galaxy pairs