Labour failed to prepare for power, admits PM's former top aide