Replica symmetry breaking in mean-field spin glasses through the Hamilton–Jacobi technique