Seven people have been arrested after £350,000 worth of prescription drugs were stolen from two pharmacies in East Lancashire.