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