Intermolecular cooperativity in dielectric and viscoelastic relaxation