Drop dynamics after impact on a solid wall: Theory and simulations