Almost £500,000 has been invested in community schemes in West Wales thanks to funding from the Port of Milford Haven.