X-Shooter study of accretion in $\rho$-Ophiucus: very low-mass stars and brown dwarfs