Controlling quantum coherence and entanglement in cavity magnomechanical systems