UK and US authorities have sent out a rare joint cyber security warning about a Russian campaign to attack firewalls and routers for future espionage.