Spontaneous lattice distortion and crystal field effects in HoB4