Spaces of integrable functions with respect to a vector measure and factorizations through Lp and Hilbert spaces