Cosmic microwave background with Brans-Dicke Gravity: I. Covariant Formulation