LIV Golf has filed for bankruptcy protection with at least $45m (£33m) owed to players, who will now have the option to leave.