David Cameron has vowed to "out" public sector workers who are "getting rich at the taxpayer's expense".