David Miliband ahead in Edinburgh East primary