Royal Bam confirms £121m first-half loss and warns of Brexit slowdown