Well-posedness and numerical analysis of a one-dimensional non-local transport equation modelling dislocations dynamics