King Charles used to practice holding audiences with the prime minister when he was still Prince of Wales, David Cameron has revealed.