The Nature of Dusty Star-Forming Galaxies in Hierarchical Models of Galaxy Formation