Beth Tweddle brought the World Gymnastics Championships to a close with a seventh-place finish in the floor event on the final day in Tokyo.