Burglars targeted celebrity homes and escaped with haul worth millions of pounds, court hears