Former Egyptian president to be retried