The former prime minister has apologised to colleagues for having secretly sworn himself in to their portfolios.