Former astronaut John Young, the ninth person ever to set foot on the moon, has died at the age of 87, NASA says.