His funeral in Cairo drew five million mourners and an outpouring of grief across the Arab world