Egypt and IMF reach funding agreement