Growing questions over prime minister’s judgement after dramatic sacking of Peter Mandelson on Thursday