Carlsberg has secured a swift end to a strike by workers in its native Denmark.