Italian ports cannot be considered safe because of the coronavirus epidemic and will not let charity migrant boats dock, the government has ruled.