German container shipping group Hapag-Lloyd swung to a first-half operating profit as it raised transport volumes and freight rates stabilised…