Nucleosynthesis bounds in gauge-mediated supersymmetry breaking theories