A survey of interstellar molecular hydrogen. I