More than £400,000 has been allocated towards solving flooding issues on the main road at Newgale, west Wales.