First-order transition between adhesion states in a system mimicking cell-tissue interaction