West Ham manager Sam Allardyce has said any fans caught making racist or anti-Semitic chants should be banned for life.