Energy spectrum of cascade showers generated by cosmic ray muons in water