Snap reported second-quarter earnings in which sales were basically in line with analysts’ estimates while global average revenue per user missed expectations.