The correspondence between convergence peaks from weak lensing and massive dark matter haloes