Prime Minister Boris Johnson has said the government is ready to impose tougher restrictions to curb the spread of the coronavirus if people do not follow the guidance on social distancing.