First search for ultralight dark matter using a magnetically levitated particle