A court has extended by four days the detention of Rabbi Aharon Ramati, who is suspected of running a cult in Jerusalem.