Egypt's Islamist former president Mohamed Morsi in court