Frames and bases of subspaces in Hilbert spaces