Tides and spin gave the Moon its strange lemon shape more than four billion years ago, research reveals.