Annexed by the UK in 1857 , the Cocos Islands were transferred to the Australian Government in 1955 .