Why a shifting market is creating opportunity in UK value small and mid caps