Cosmic Strings and Galaxy Formation