TeV-scale horizontal symmetry and the slepton mass problem of anomaly mediation