Weak uncertainty principle for fractals, graphs and metric measure spaces