Canadian Prime Minister Justin Trudeau and his wife, Sophie, have announced they are separating after 18 years of marriage.