The government is ‘at risk of learning the wrong lessons from this sorry episode’, the former prime minister said