A man received serious injuries after being hit by a car that failed to stop to help him in Bath.