Magnetic hysteresis of cobalt ultrathin films with perpendicular anisotropy