Can I rest during the swim?

Yes, but you may not use anything (except the bottom) to gain forward progress. Swimmers may stop and rest by holding on to a rope or other inanimate object without penalty, as long as the participant does not gain forward progress.