Evidence from stellar rotation of enhanced disc dispersal - I. The case of the triple visual system BD−21 1074 in the β Pictoris association