BBC boss Tim Davie has resigned after a 'systemic bias' row and admitted the broadcaster 'is not perfect'.