Soaring demand for the raw materials needed for the transition towards renewable energy is creating dilemmas for investors weighing the economic, environmental and human rights risks of such projects.