A detector for state-resolved molecular beam experiments using optical fibres