An Egyptian court has handed ex-president Mohamed Morsi the death penalty for taking part in a jail-break during the 2011 uprising against his predecessor Hosni Mubarak.