Louis van Gaal has been warned by the Football Association over his future conduct following comments he made about referee Chris Foy.