Leicester boss Richard Cockerill admitted his side "played poorly" as they scraped a win at home to Aviva Premiership strugglers Gloucester.