On the Cauchy problem for the $p$-system at a junction