Causality constraints on fluctuations in cosmology: A study with exactly solvable one-dimensional models