Brans-Dicke theory of gravity and flavour oscillations