YouTube said it would ban videos relating to the sale or assembly of guns and certain gun accessories, as tech giants face growing pressure to limit the promotion of firearms. The world’s largest video site, a division of Alphabet Inc.’s GOOGL, -0.16% GOOG, -0.62% Google, said this week it would…