A former Irish Olympic swimming coach has been jailed for indecently assaulting four girls and the attempted rape of one of them.