British Prime Minister Boris Johnson says he did not know a birthday gathering at the height of the pandemic was in breach of the rules that he had set.