Chow rings and decomposition theorems for families of K3 surfaces and Calabi-Yau hypersurfaces