The influence of visual cortex on perception is modulated by behavioural state