On the stability of $θ$-methods for DDEs and PDDEs