The Scottish government is investing £1.8m to help design new port facilities for the offshore wind industry.