Harmonic shifted symmetric polynomials and the Bloch-Okounkov theorem