Thermal relaxation and coherence dynamics of spin 3/2. I. Static and fluctuating quadrupolar interactions in the multipole basis