The origins of directional persistence in amoeboid motility