Local people in Wales to see their high streets revived, community hubs saved and public services transformed with £100 million funding.