The French oil and gas multinational Total has been fined more than £1m for safety breaches that led to a potentially catastrophic leak at its Elgin platform in the North Sea.