Scotland’s coastal communities are missing out on millions in government funding while projects elsewhere benefit, the Tories have claimed.