Prime Minister Boris Johnson said he would be respectful in his celebrations on Friday when Britain leaves the European Union, mindful that Brexit still divides the country.