Some good work has been done by a fairly small number of philosophers, but most of what passes for 'philosophy' is garbage.
Some philosophy is worth studying; most is not.
Unfortunately, far too many people are interested in philosophy because it tolerates sloppiness and laziness that science does not and because one can nearly always find a 'philosopher' who says what one wants to hear.
This ^
As someone who has an advanced degree in physics, and who is also looking into seriously pursing studies in philosophy, I think this criticism of the field is quite fair.
However, at the same time, as Complexity mentioned, there are some very serious philosophers out there who are worth studying. I think this is especially true when looking at the work of philosophers like Pigliucci, Dennett, and the like concerning issues where modern science (such as neurology) intersects with philosophical questions of free will, agency, and determinism, etc.
Personally, I am quite interested in the philosophy of science; I think one really good question is in regards to the testability of so-called supernatural claims. There is an argument that "since science studies the natural realm, there is no way for science to speak to the 'supernatural'"; science cannot speak to religious questions, religion cannot speak to scientific questions, and the two agree to disagree and move happily along.
Contrast this with the view, favored by Victor Stenger, that science can most definitely test supernatural claims (such as whether or not certain versions of "god" exist) so long as those claims are, at least hypothetically, testable via standard empirical analysis.
I used to think of these questions in the former view, but I'm beginning to seriously consider Stenger's arguments as valid. Regardless, this is one area in which philosophy is definitely important to fields of scientific study. That's because when you really drill down, you do have to ask questions about the philosophical underpinnings of science and what it can (and cannot) do.
And there are other very interesting philosophical explorations which are quite related to scientific studies. One new field in which I am particularly interested is something called experimental philosophy; it basically questions the standard view of philosophy (as seen by most people) as a kind of rationalistic discourse where people make arguments back-and-forth and that's all they do (so-called "armchair philosophy"). What experimental philosophy does is bring philosophy under the umbrella of empirical analysis in order to address various questions.
Here's a summary of the subject.
So yes, I understand quite well the criticism that philosophy is "useless", because when it is done poorly or results in merely running around in endless circles, it is tough to argue that the field is going somewhere.
ETA: Having said all of that, I do think that some basic study of philosophy is important because, if done properly, at the very least it introduces people to many analytical and critical thinking skills which they might not otherwise encounter. I have to say that, of all the humanities courses I ever took as an undergrad, my philosophy course in introductory logic was probably among the most useful.