Giants sign former Yankees All-Star catcher