Andrew RT Davies, the leader of the opposition in Wales, has been censured by the Senedd over social media posts.