Hennes & Mauritz (H&M) has booked its second straight quarter of flat sales growth as the Swedish fashion retailer battles with slowing store traffic.