Search for massive long-lived particles decaying semileptonically in the LHCb detector