A string dual for partially topological Chern-Simons-matter theories