Superconductivity and magnetism in Co substituted YBCO compounds