Effect of lateral interactions of adsorbed molecules on their local vibrations