Swedish fashion giant H&M has blamed higher purchasing costs due to the strengthened US dollar and increased markdowns for a 17% fall in its second-quarter profit.