Lancashire children are set to benefit from a £ 2.4 million investment into preventing tooth decay.