HSBC has been fined $72.8 million (£57.4 million) for "serious failings" in protecting depositors over several years, marking the first punishment of its kind under British law to protect customers if banks fail.