A primary school in Wales was locked down following a threat about people armed with 'knives' - police said a 'critical incident' had been declared