Formation of Asteroid Families and Delivery of NEO Showers from the Main Belt