Replica field theory for anharmonic sound attenuation in glasses