Embattled UC Davis chancellor resigns