Theory and simulations of receptor binding in inter-cell adhesion and junction formation