Dynamical study of the $Z_b$(10610) and $Z_b$(10650) as molecular states