Gary Ballance has left Yorkshire after the county agreed to the former England batter’s request to terminate his contract.