INVESTIGATING NEARBY STAR-FORMING GALAXIES IN THE ULTRAVIOLET WITH HST/COS SPECTROSCOPY. I. SPECTRAL ANALYSIS AND INTERSTELLAR ABUNDANCE DETERMINATIONS