Danny Garcia maintained his unbeaten record and retained his WBA and WBC light-welterweight titles with a points victory over Zab Judah in New York.