Libyan rebels have adandoned the towns of Ras Lanouf and Brega under bombardment from Colonel Gaddafi's forces.