Most of the state’s 19 mass shootings over the past six decades were carried out by men who legally possessed firearms, an investigation by ProPublica and The Texas Tribune found.