Invariant Hilbert subspaces of the oscillator representation