Try removing the rear brake master cylinder, let all the old fluid drain away from the reservoir, clean externally best you can, then remove the rubber boot and circlip and push the piston and spring out. Give it all a really good clean. Might be best to get a new Beta seal/piston replacement kit (only a few quid from John Lampkin online - next day delivery) Ensure the cylinder internally is really clean, cover the new piston assy with brake fluid and refit with the new spring, circlip and rubber boot (supplied in kit). Refit to bike ensuring there is a bit of pedal free play (pedal lets the piston return to open position on its own). Top up fluid reservoirwith new brake fluid and bleed till you get all the air out. If you have trouble bleeding it, get a surgical syringe and a short length of clear pipe attached to bleed screw and draw the fluid through then lock the nipple. You should have a good brake pedal. Probably best to put some new galfer pads in and make sure there is no oil or grease on the disc. If you spray WD40 or anything like it near the rear disc you can contaminate the disc without knowing.
Hope this helps..