Variational estimates for dispersion and attenuation of waves in random composites—I: General theory