Coming to this late, but this is typical behaviour for the Long-tailed Tit.
These birds are almost always seen in groups and stay very close together. They roost and perch on wires or thin branches, staying very close together.
You talk of a black cap. Long-tailed tits have black markings on their heads but with a white centre.