Royal protection police have been put on restricted duties amid claims they slept on the job while working at Windsor Castle.