Egypt says foreign mediation has failed to resolve crisis