The Church of England has agreed to divest from oil and gas firms by 2023 unless they can demonstrate sufficient efforts to mitigate the effects of climate change.