Hurricane Beryl hammered Mexico with life-threatening storm surge, with the Texas coast expected to be next in its path.