IMF’s own Greece post-mortem shows why it should have steered clear of the euro crisis