A Review of the Role of Causality in Developing Trustworthy AI Systems