Averages of $b$-hadron, $c$-hadron, and $τ$-lepton properties as of 2018