Gravitational wave signatures from discrete flavor symmetries