No, a written agreement cannot exclude or contract out of the Regulations but it is possible to limit the extent and effect of some of the Regulations.  We would recommend that you take legal advice on which of the Regulations may/may not be limited.