Portugal’s former prime minister Jose Socrates is put under house arrest after more than nine months in jail.