A dad who assaulted his teenage daughter in a pub before a racist outburst, calling another punter the n-word, has been banned from drinking.