Courteney Cox reflected on a beautiful bond she shared with the actor, both as a co-star and a cherished friend and she penned a touching note, paying homage to Perry's memory