Prompt and non-prompt J/psi production in pp collisions at root s=7 TeV