AGL has withdrawn plans to split the company in two following growing pressure from shareholders who were opposed to the move.