A proof of the bordism hypothesis