Inclusive J/ψ production at mid-rapidity in pp collisions at √s = 5.02 TeV