£3.8m helps Scottish groups tackle issues head on