Horizontal symmetries for the supersymmetric flavor problem