A primary school that introduced a 'muddy play area' has apologised to parents after their children came home caked in mud.