Anthony Davis agrees to five-year max contract with Lakers