Former Portugal PM Socrates leaves jail for house arrest