Time Warner Cable agreed to pay 18.8 million in a settlement with the district attorneys of Los Angeles, San Diego and Riverside counties of allegations that it used misleading advertising practices to lure consumers to pay for high-speed internet services the company could not deliver.