Police have launched an investigation after a human leg was found washed up on a South Ayrshire beach.