Five Berkshire residents in court after being caught with cannabis