Λ c+ production in pp collisions at √s=7 TeV and in p-Pb collisions at √sNN=5.02 TeV