Theory of the magnon Kerr effect in cavity magnonics