A man who suffered head injuries in an attack in Slough is in a critical condition in hospital, police say.