ThredUp Inc. has filed for an initial public offering, the latest retailer trying to capitalize on generational shifts toward online shopping and secondhand clothing.