Cavity Optomechanical Magnetometer