Dublin goes from ‘leader to flounderer’ as planning and energy supply problems lead tech groups to invest elsewhere