A man has been found guilty of murder after battering another man to death before leaving his body in a bath for 10 days.