Constraints on theories of galaxy formation from measurements of fluctuations in the CMB