Triad interactions and the bidirectional turbulent cascade of magnetic helicity