Bacterial chemotaxis: from information processing to behaviour