A Houthi-controlled court in Yemen has sentenced 17 people to death for allegedly spying for foreign governments.