Melbourne United hold on to beat the Perth Wildcats in a tussle at RAC Arena, spoiling Bryce Cotton's 250th NBL game.