Five towns in the West Midlands are to share £100 million in regeneration cash.