An Egyptian court has sentenced 26 people to death for reportedly forming a "terror group" to target shipping passing through the Suez Canal, judicial sources said.