Mandelson appointment was ‘serious error of judgment’, says Keir Starmer’s former adviser Morgan McSweeney