Bryncethin edged victory over Nantyglo 19-15 in the WRU National Division Four Cup final at the Principality Stadium to end a run of defeats at the ground.