As countries around the world turn to green energy to reduce their dependence on fossil fuels, a challenge is looming: what to do with ageing and increasingly un-economic oil and gas infrastructure.