Dollar rises ahead of US inflation data