Ray Mallon 'advised developer and lobbied MP' over Teesworks