Vibrational interaction between molecules adsorbed on a metal surface: The dipole-dipole interaction