Shell will avoid investing too heavily in solar or other technologies until they can make financial profits, its chief executive has said.