The Queen's funeral will, according to tradition, be a state funeral, a rare honour mostly reserved for the sovereign.