HST/STIS low dispersion spectroscopy of three compact steep spectrum sources. Evidence for jet-cloud interaction