On the perturbation of the luminosity distance by peculiar motions