Rebels retreat from Libya oil port under attack