An Edinburgh councillor has been wrapped on the knuckles for swearing during a debate after accusing his opponent of talking “utter p*sh”.