Canadian police are investigating after the deputy prime minister, Chrystia Freeland, was subjected to a foul-mouthed tirade at city hall meeting.