Over £5m of National Lottery money awarded to more than 160 communities across Wales