Beckwithshaw primary school rated 'inadequate' by Ofsted