SA will resolve energy challenges, says President Ramaphosa