Pub charity raffles 'illegal' says law firm