The Duchess of Cambridge visited the America's Cup base of sailing champion Sir Ben Ainslie in Portsmouth to see how youngsters are being inspired to join the marine industry.