Adaptive motion vector resolution prediction in block-based video coding