Prime minister’s director of communications Tim Allan steps down as Mandelson controversy continues