JPMorgan retained its place at the top of the global investment bank rankings in the first half of this year despite a fall in revenues.