Diego Costa scored the winner as Chelsea maintained their grip of the Premier League title race with a 2-1 victory at Liverpool.