Measurement of charm production at central rapidity in proton-proton collisions at √s = 2.76 TeV