Star-wheel capping machine