Why is hard water not suitable for washing clothes with soap?

Hard water contains bicarbonates, chlorides and sulphates of calcium and magnesium which react with soap molecules forming insoluble precipitates called scum. Hence, strength of soap molecules are lost in the chemical reaction and they are not available for cleansing action.