Crisis-hit Pakistan strikes $3bn funding deal with IMF