Nearly £500,000 of investment has been channelled into Flintshire's rural communities.