SIMEC Infrastructure has reached agreement to buy a major port and cargo-handling business in South Wales, as it expands its transport infrastructure across the country.