Strong and radiative decays of the low-lying $S$- and $P$-wave singly heavy baryons