Prompt and non-prompt J/ψ production in pp collisionsat √s =7 TeV