Brown warns firms to invest in science