Children's wear group Mothercare has swung to a first-half profit thanks to strong international sales growth in the first half of the year.