Activists say Russian police have detained some 300 protesters after thousands turned out in Moscow, St Petersburg and elsewhere to protest plans to raise the pension age.