Ainslie credits ‘real team effort’ for performance on SailGP’s tightest racecourse