Cornwall is getting a share of £150m from the Flood and Coastal Innovative Resilience Programme to help safeguard its sand dunes.