Police have issued a warning to Edinburgh residents to be vigilant after a series of attacks on walking routes in the city.