Boris Johnson told Britons to work from home when possible and ordered pubs and restaurants to close early as he sought to stamp out a resurgence of coronavirus.