David O'Byrne to resign as Labor leader