A former Home Secretary has accused the Duke of York of making racist remarks about Arabs following a state dinner for the Saudi royal family.