John Edwards says his position had become 'untenable' following investigation into conduct including inappropriate attempts at humor