The acclaimed actor Benedict Cumberbatch has pleaded with fans outside the Barbican theatre in London not to film his stage performance of Hamlet.