Measurement of the differential cross-sections of inclusive, prompt and non-prompt J/psi production in proton-proton collisions at root s=7 TeV