Ed Miliband narrowly defeats brother David to become Labour leader