The party said it would open an inquiry into how the US president funded his Scottish golf courses if it wins next week’s election.