A primary school has been put into special measures and banned from hiring newly-qualified teachers after inspectors called for urgent improvements.