HSBC bought $130m worth of shares in firms tied to Israel’s military, in breach of Islamic law compliance requirements.