Egypt's ousted president Mohammed Morsi dies in court