India has accused Pakistan of attacking three military bases, a claim which has been denied by Islamabad.